<script>
	export default {
		onLaunch() {
			// #ifdef APP-PLUS
			this.$IM.init()
			let pinf = plus.push.getClientInfo()
			let cid = pinf.clientid //客户端标识 bc0f83911f7e8be8d714a74de80874f1
			console.log('cid：' + cid)
			plus.push.addEventListener('click', function(msg) {
				uni.navigateTo({
					url: '/pages/setting/setting'
				});
				}, false
			)
			plus.push.addEventListener('receive', function(msg) {
				uni.navigateTo({
					url: '/pages/setting/about'
				});
				}, false
			)
			//#endif
			console.log('App Launch')
			// const value = uni.getStorageSync('launchFlag')
			// if (value) {
			// 	// launchFlag=true直接跳转到首页
			// 	console.log(value)
			// 	uni.switchTab({
			// 		url: '/pages/index/index2'
			// 	});
			// } else {
			// 	console.log(value)
			// 	// uni.navigateTo({
			// 	// 	url: '/pages/index/index'
			// 	// })
			// }
		},
		onShow() {
			console.log('App Show')
		},
		onHide() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
	@import "static/iconfont/iconfont.css";
	// @import "common/font/stylesheet.css";
	// @font-face {
	//      font-family: ar-font-souce;
	//      src: url('~@/static/my-font.ttf');
	//  }
	// // @import url("static/fonts/iconfont.css");
	// // 自定义修改全局样式
	// // 字体
	// .ar-font-souce {
	// 	font-family: ar-font-souce;
	// }
	.fw {
		font-weight: 800;
	}
	.order-model {
		.u-model__footer {
			view:first-child {
				
			}
			view:last-child {
				background-color: #0d2647 !important;
			}
			
		}
	}
	// 隐藏滚动条 app端全写
	::-webkit-scrollbar {
	    display: none;  
		width: 0 !important;  
		height: 0 !important;  
		-webkit-appearance: none;  
		background: transparent; 
		-webkit-overflow-scrolling: touch;
	}
	uni-scroll-view .uni-scroll-view::-webkit-scrollbar {
		display: none;
	}
	.avatar-up .u-add-wrap {
		// width: 90rpx !important;
		// height: 90rpx !important;
		// border-radius: 50% !important;
		margin: 0 !important;
	}
	.avatar-up .u-add-wrap .u-add-tips {
		display: none;
	}
	.avatar-up .u-preview-wrap {
		width: 90rpx !important;
		height: 90rpx !important;
		border-radius: 50% !important;
		margin: 0 !important;
	}
	.avatar-up .u-delete-icon {
		width: 24rpx !important;
		height: 24rpx !important;
	}
	.avatar-up .u-progress {
		height: 10rpx !important;
	}
	.vip-card .u-icon__icon {
		color: #050c1e !important;
	}
	.login-con .u-button-wrap .u-success-hover {
		background: #2b85e4 !important;
	}
	.over-hidden {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
</style>
